<script lang="ts" setup>
import { buildStyles } from '../utils'

const props = defineProps<{ size?: number, padding?: string }>()

const styles = buildStyles(() => {
    return {
        fontSize: props.size + "px",
        padding: props.padding
    }
})
</script>

<template>
    <div class="umrp-label" :style="styles">
        <slot></slot>
    </div>
</template>

<style lang="scss" scoped>
.umrp-label {
    background-color: #fff;
    display: inline-block;
    font-size: 14px;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
</style>